package ivo.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class GetSystemTime {	
	
	public static String getEvtTime(){
		Calendar now = Calendar.getInstance();
		SimpleDateFormat tempDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		String evt_timestamp = tempDate.format(now.getTime());
		return evt_timestamp;	
	}
	
	public static String getRvTime(){
		Calendar now = Calendar.getInstance();
		SimpleDateFormat tempDate = new SimpleDateFormat("yyyyMMddHHmmss");
		String evt_timestamp = tempDate.format(now.getTime());
		return evt_timestamp;	
	}
	public static String getMillTime(){
		Calendar now = Calendar.getInstance();
		SimpleDateFormat tempDate = new SimpleDateFormat("yyyyMMddHHmmssSSSSSS");
		String evt_timestamp = tempDate.format(now.getTime());
		return evt_timestamp;	
	}
	 
	public static String formatEvtTime(Calendar calendar){
		SimpleDateFormat tempDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		String evt_timestamp = tempDate.format(calendar.getTime());
		return evt_timestamp;
	}
	
	public static String formatRvTime(Calendar calendar){
		SimpleDateFormat tempDate = new SimpleDateFormat("yyyyMMddHHmmss");
		String evt_timestamp = tempDate.format(calendar.getTime());
		return evt_timestamp;
	}
	
	public static void main(String args[]){
		//System.out.println(getDBTime());
	}
	

}
